<?php

namespace IDock\Insurance\MACN\Request;

use IDock\Insurance\MACN\Response\ProposalStatusResponse;
use IDock\Visitor\ProposalStatusVisitor;

class ProposalStatusRequest extends AllMACNRequest
{
    protected $requestType = '0022';

    protected $response = ProposalStatusResponse::class;

    protected $urlTip = '投保单状态查询';

    /**
     * @var  ProposalStatusVisitor $visitor
     */
    protected $visitor;

    /**
     * @return array
     */
    public function generate(): array
    {
        return [
            'baseInfo' => [
                'coverNoteNo' => $this->visitor->argc['preProposalTopNo'] ?? '',
            ],
        ];
    }
}